<?php // no direct access
defined('_JEXEC') or die('Restricted access'); ?>
<br />
<div class="pollstableborder" cellspacing="0" cellpadding="0" border="0">
		<h4 class="sectiontableheader">
			<img src="components/com_poll/assets/poll.png" align="middle" border="0" width="12" height="14" alt="" />
			<?php echo $this->poll->title; ?>
		</h4>
<div>
<?php foreach($this->votes as $vote) : ?>
	<div class="sectiontableentry<?php echo $vote->odd; ?>">
		<div style="width:100%;">
			<?php echo $vote->text; ?>
		</div>

		<div style="width:10%; float:left;">
			<strong><?php echo $vote->hits; ?></strong>&nbsp;
		</div>
		<div style="width:10%; float:left;" >
			<?php echo $vote->percent; ?>%
		</div>
		<div style="width:80%; float:left;" >
			<div class="<?php echo $vote->class; ?>" style="height:<?php echo $vote->barheight; ?>px;width:<?php echo $vote->percent; ?>%"></div>
		</div>
        <div class="clr"></div>
	</div>
<?php endforeach; ?>
</div>
</div>
<br />
<div>
<div>
	<div>
		<div class="smalldark" style="width:25%; float:left;">
			<strong><?php echo JText::_( 'Number of Voters' ); ?></strong>
		</div>
		<div class="smalldark" style="float:left;">
			<?php if(isset($this->votes[0])) echo $this->votes[0]->voters; ?>
		</div>
        <div class="clr"></div>
	</div>
	<div>
		<div class="smalldark" style="width:25%; float:left;">
			<strong><?php echo JText::_( 'First Vote' ); ?></strong>
		</div>
		<div class="smalldark" style="float:left;">
			<?php echo $this->first_vote; ?>
		</div>
        <div class="clr"></div>
	</div>
	<div>
		<div class="smalldark" style="width:25%; float:left;">
			<strong><?php echo JText::_( 'Last Vote' ); ?></strong>
		</div>
		<div class="smalldark" style="float:left;">
			<?php echo $this->last_vote; ?>
		</div>
        <div class="clr"></div>
	</div>
</div>
</div>